package com.macro.mall.dao;

import com.macro.mall.entity.LoanPackage;

import java.util.List;

/**
 * LoanPackage的Dao接口
 *
 * @author
 */
public interface LoanPackageDao {


    /**
     * 获得一个LoanPackage对象,以参数LoanPackage对象中不为空的属性作为条件进行查询
     *
     * @param obj
     * @return
     */
    List<LoanPackage> selectLoanPackageByObj(LoanPackage obj);


    /**
     * 插入LoanPackage中属性值不为null的数据到数据库
     *
     * @param value
     * @return
     */
    int insertNotNullLoanPackage(LoanPackage value);


    /**
     * 通过LoanPackage的id删除LoanPackage
     *
     * @param id
     * @return
     */
    int deleteLoanPackageById(Integer id);


    /**
     * 通过LoanPackage的id更新LoanPackage中属性不为null的数据
     *
     * @param enti
     * @return
     */
    int updateNotNullLoanPackageById(LoanPackage enti);


}